import Vue from 'vue'
import Vuex from 'vuex'
import {ajax} from '@/api'
import vuexPersistedstate from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  plugins:[
    vuexPersistedstate()
  ],
  state: {
    userInfo:null
  },
  getters: {
  },
  mutations: {
    changerUserInfo(state,payload){
      state.userInfo = payload
    }
  },
  actions: {
    
  },
  modules: {
  }
})
